package com.ruoyi.selector;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.mapper.SysUserMapper;
import com.ruoyi.system.service.ISysUserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 视图接口 :
 *
 * @Author : ljq
 * @Created : 2025/10/15
 */
@RestController
@RequestMapping("selector")
public class SelectorController extends BaseController {


    /* ------------------------------- 用户  ---------------------------*/
    @Resource
    private SysUserMapper userMapper;

    ///~  用户列表
    @GetMapping("/user")
    public AjaxResult list(SysUser user) {
        List<SysUser> list = userMapper.selectUserList(user);
        return AjaxResult.success(list);
    }


}